# CVE-2022-50995: WWW::Form::UrlEncoded::XS versions before 0.27 for Perl read one byte before the input buffer when parsing an empty string

- Severity: not scored yet
- 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.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-11-25T22:42:02.965Z
- Modified: 2026-11-25T23:17:20.923Z
- Weaknesses: CWE-127
- Assigned by: CPANSec

## Description

WWW::Form::UrlEncoded::XS versions before 0.27 for Perl read one byte before the input buffer when parsing an empty string.

parse_urlencoded and parse_urlencoded_arrayref check for a trailing "&" or ";" by reading the last byte of the input, without first checking that the input has any bytes.

A remote client that sends an empty query string or request body to an application parsing it with this module can crash the process.

(As written by CVE List.)

## Affected

- WWW-Form-UrlEncoded-XS: before 0.27

## References

- <https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/commit/3a0a35e7509b42667b19ee027807253adaf07333.patch> (patch)
- <https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/pull/7> (issue-tracking)
- <https://metacpan.org/release/KAZEBURO/WWW-Form-UrlEncoded-XS-0.27/changes> (release-notes)

## Sources

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

---

Page: https://cve.day/CVE-2022-50995 · Whole record: https://cve.day/CVE-2022-50995.json · Rebuilt by cve.day 2026-11-25T23:32:32.305Z
