p PatchFirst

CVE-2025-40927

CVE-2025-40927 · CGI::Simple versions 1.281 and earlier for Perl has a HTTP response splitting flaw

CVSS 7.3 · High · EPSS 0.5% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libcgi-simple-perl"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

CGI::Simple versions before 1.282 for Perl has a HTTP response splitting flaw This vulnerability is a confirmed HTTP response splitting flaw in CGI::Simple that allows HTTP response header injection, which can be used for reflected XSS or open redirect under certain conditions.

Although some validation exists, it can be bypassed using URL-encoded values, allowing an attacker to inject untrusted content into the response via query parameters.

As a result, an attacker can inject a line break (e.g. %0A) into the parameter value, causing the server to split the HTTP response and inject arbitrary headers or even an HTML/JavaScript body, leading to reflected cross-site scripting (XSS), open redirect or other attacks.

The issue documented in CVE-2010-4410 https://www.cve.org/CVERecord?id=CVE-2010-4410 is related but the fix was incomplete.

Impact

By injecting %0A (newline) into a query string parameter, an attacker can:

  • Break the current HTTP header
  • Inject a new header or entire body
  • Deliver a script payload that is reflected in the server’s response That can lead to the following attacks:
  • reflected XSS
  • open redirect
  • cache poisoning
  • header manipulation
Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • cgi::simple

    Versions
    • ≥ 0, < 1.282: Affected (custom)

    Update to 1.282

  • libcgi-simple-perl Debian 12

    Versions
    • 1.280-2
    Affected ranges
    • ECOSYSTEM: < 1.280-2+deb12u1

    Update to 1.280-2+deb12u1

  • libcgi-simple-perl Debian 13

    Versions
    • 1.281-1
    Affected ranges
    • ECOSYSTEM: < 1.282-1~deb13u1

    Update to 1.282-1~deb13u1

  • libcgi-simple-perl Debian 14

    Versions
    • 1.281-1
    • 1.282-1~deb13u1
    Affected ranges
    • ECOSYSTEM: < 1.282-1

    Update to 1.282-1

  • libcgi-simple-perl Ubuntu 16.04 LTS

    Versions
    • 1.115-1
    • 1.115-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-simple-perl Ubuntu 18.04 LTS

    Versions
    • 1.115-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-simple-perl Ubuntu 20.04 LTS

    Versions
    • 1.115-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-simple-perl Ubuntu 22.04 LTS

    Versions
    • 1.115-2
    • 1.280-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-simple-perl Ubuntu 24.04 LTS

    Versions
    • 1.280-2
    • 1.281-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-simple-perl Ubuntu 25.10

    Versions
    • 1.281-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libcgi-simple-perl Ubuntu 26.04 LTS

    Versions
    • 1.281-1
    • 1.282-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →