CVE-2011-4203: Moodle/moodle Moodle CRLF Injection Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-4w8m-96v9-2c86
CWE-113 CWE-93
Published
Advisory Summary

CVE-2011-4203 is a MODERATE moodle crlf injection vulnerability vulnerability (CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')) affecting Moodle/moodle libraries in the Packagist ecosystem. The issue involves moodle crlf injection vulnerability in calendar component. Remediation is available by upgrading affected packages to version 1.9.15, 2.0.6, 2.1.3.

CVE-2011-4203 at a Glance

CVE Identifier CVE-2011-4203
GHSA Identifier GHSA-4w8m-96v9-2c86
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
Affected Product Moodle/moodle
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2011-4203

To remediate this vulnerability, upgrade all affected Moodle/moodle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

moodle/moodle fixed: 1.9.15
Upgrade moodle/moodle to 1.9.15
moodle/moodle fixed: 2.0.6
Upgrade moodle/moodle to 2.0.6
moodle/moodle fixed: 2.1.3
Upgrade moodle/moodle to 2.1.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for moodle/moodle

How to Check if You Are Affected

To determine whether your application is affected by CVE-2011-4203, inspect your project dependencies for Moodle/moodle:

inspect dependencies for moodle/moodle

Analyze the terminal output to locate any version of Moodle/moodle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.15), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting'), where the product receives data from an http agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes cr and lf characters before the data is included in outgoing http headers. In Moodle/moodle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

CRLF injection vulnerability in calendar/set.php in the Calendar component in Moodle 1.9.x before 1.9.15, 2.0.x before 2.0.6, 2.1.x before 2.1.3, and 2.2 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via vectors involving the url variable.

CVE-2011-4203 Affected Moodle/moodle Versions

3 component(s)
Fixed Versions:
1.9.152.0.62.1.3
Product / Package Ecosystem Affected Versions Fixed Version
moodle/moodle
Packagist
< 1.9.15
1.9.15
moodle/moodle
Packagist
≥ 2.0
< 2.0.6
2.0.6
moodle/moodle
Packagist
≥ 2.1
< 2.1.3
2.1.3

References

Frequently Asked Questions

What is CVE-2011-4203?
CVE-2011-4203 is a security vulnerability in Moodle/moodle involving Moodle CRLF Injection Vulnerability in Calendar Component under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting').
Which Moodle/moodle versions are affected?
Affected versions include releases prior to 1.9.15, 2.0.6, 2.1.3 across affected packages: moodle/moodle.
What version fixes CVE-2011-4203?
Upgrading to 1.9.15, 2.0.6, 2.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is moodle/moodle affected?
Yes, moodle/moodle is affected in releases prior to 1.9.15, 2.0.6, 2.1.3. Upgrade your dependency to 1.9.15, 2.0.6, 2.1.3 or later.
What CWE is associated with CVE-2011-4203?
CVE-2011-4203 is classified under CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') (The product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.).
How can I check Packagist dependencies for CVE-2011-4203?
Run the dependency tree command: 'inspect dependencies for moodle/moodle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4w8m-96v9-2c86",
  "modified" : "2024-01-17T18:51:01Z",
  "published" : "2022-05-13T01:13:04Z",
  "aliases" : [ "CVE-2011-4203" ],
  "summary" : "Moodle CRLF Injection Vulnerability in Calendar Component",
  "details" : "CRLF injection vulnerability in calendar/set.php in the Calendar component in Moodle 1.9.x before 1.9.15, 2.0.x before 2.0.6, 2.1.x before 2.1.3, and 2.2 allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via vectors involving the url variable.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "moodle/moodle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "moodle/moodle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0"
      }, {
        "fixed" : "2.0.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "moodle/moodle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1"
      }, {
        "fixed" : "2.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2011-4203"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moodle/moodle/commit/581e8dba387f090d89382115fd850d8b44351526"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moodle/moodle/commit/ae7cc577b7115a7ad7a68dc4986aca9e2bda2cf5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moodle/moodle/commit/bc577df6a974606fcb0882b090b00ea5a4e10cf6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moodle/moodle/commit/e311b14364719b0f7851149ee51c1a4ec732635e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moodle/moodle"
  }, {
    "type" : "WEB",
    "url" : "https://moodle.org/mod/forum/discuss.php?d=191754"
  }, {
    "type" : "WEB",
    "url" : "http://penturalabs.wordpress.com/2011/12/13/advisory-crlf-injection-vulnerability-in-moodle"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-113", "CWE-93" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-17T18:51:01Z",
    "nvd_published_at" : "2011-12-22T15:29:00Z"
  }
}