# CVE-2026-41682: pupnp: Port truncation via atoi() cast in parse_uri() allows SSRF port confusion

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-05-08T22:47:37.494Z
- Modified: 2026-06-17T10:46:59.790Z
- Weaknesses: CWE-195, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

pupnp is an SDK for development of UPnP device and control point applications. Prior to version 1.18.5, pupnp is vulnerable to SRRF port confusion due to port truncation via atoi() cast in parse_uri(). This issue has been patched in version 1.18.5.

(As written by CVE List.)

## Affected

- pupnp pupnp: < 1.18.5

## References

- <https://github.com/pupnp/pupnp/security/advisories/GHSA-q522-6w45-4j58>
- <https://github.com/pupnp/pupnp/commit/def5f9a2bc42f5b3d713e37c516fbe840ce54b7b>
- <https://github.com/pupnp/pupnp/releases/tag/release-1.18.5>

## Sources

- CVE List: [CVE-2026-41682](https://www.cve.org/CVERecord?id=CVE-2026-41682), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-41682](https://nvd.nist.gov/vuln/detail/CVE-2026-41682), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-41682 · Whole record: https://cve.day/CVE-2026-41682.json · Rebuilt by cve.day 2026-11-25T22:59:21.119Z
