# CVE-2022-50996: WWW::Form::UrlEncoded::XS versions before 0.28 for Perl write past the end of the Perl argument stack when parse_urlencoded returns many pairs

Status: published. Published: 2026-11-25. Updated: 2026-11-25.

WWW::Form::UrlEncoded::XS versions before 0.28 for Perl write past the end of the Perl argument stack when parse_urlencoded returns many pairs.

parse_urlencoded returns its result as a list, pushing each decoded key and value onto the argument stack without first extending the stack to fit them. parse_urlencoded_arrayref returns an array reference and is not affected.

A remote client that sends a query string or request body with many pairs to an application parsing it with parse_urlencoded can corrupt memory and crash the process.

## Remediation

- fix: Upgrade to WWW-Form-UrlEncoded-XS 0.28 or later. (source: CNA: CPANSec)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: CPANSec) — https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/commit/9c14314c51f5745da316286131df49d5a53c0bdc.patch

## Affected products and versions

-  /  (WWW-Form-UrlEncoded-XS): ≥ 0; < 0.28 (affected, custom). Source: CNA: CPANSec

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-787

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/commit/9c14314c51f5745da316286131df49d5a53c0bdc.patch (CNA: CPANSec; patch)

- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/pull/8 (CNA: CPANSec; issue-tracking)

- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/issues/6 (CNA: CPANSec; issue-tracking)

- https://metacpan.org/release/KAZEBURO/WWW-Form-UrlEncoded-XS-0.28/changes (CNA: CPANSec; release-notes)

- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/commit/9c14314c51f5745da316286131df49d5a53c0bdc.patch (9b29abf9-4ab0-4765-b253-1875cd9b441e)

- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/issues/6 (9b29abf9-4ab0-4765-b253-1875cd9b441e)

- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/pull/8 (9b29abf9-4ab0-4765-b253-1875cd9b441e)

- https://metacpan.org/release/KAZEBURO/WWW-Form-UrlEncoded-XS-0.28/changes (9b29abf9-4ab0-4765-b253-1875cd9b441e)

## Provenance

- CNA: CPANSec: https://www.cve.org/CVERecord?id=CVE-2022-50996; retrieved 2026-11-25; source updated 2026-11-25

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-50996; retrieved 2026-11-26; source updated 2026-11-25

Revision: 59901664d47eaa174f22297f618c562ca843f34c0041b19c6fe4e3645b6cc5d7

Canonical: https://y2.dev/cve/CVE-2022-50996

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.