CVE-2017-1000247: Codeigniter4/framework CodeIgniter HTTP Header Injection Vulnerability

HIGH
Advisory Identifier: GHSA-j9f9-8j39-4g97
CVSS 7.5
CWE-20
Published
Advisory Summary

CVE-2017-1000247 is a HIGH (CVSS 7.5) codeigniter http header injection vulnerability (CWE-20: Improper Input Validation) affecting Codeigniter4/framework libraries in the Packagist ecosystem. The issue involves codeigniter http header injection. Remediation is available by upgrading affected packages to version 3.1.4.

CVE-2017-1000247 at a Glance

CVE Identifier CVE-2017-1000247
GHSA Identifier GHSA-j9f9-8j39-4g97
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Codeigniter4/framework
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2017-1000247

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

codeigniter4/framework fixed: 3.1.4
Upgrade codeigniter4/framework to 3.1.4
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 codeigniter4/framework

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-1000247, inspect your project dependencies for Codeigniter4/framework:

inspect dependencies for codeigniter4/framework

Analyze the terminal output to locate any version of Codeigniter4/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.4), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Codeigniter4/framework, 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

British Columbia Institute of Technology CodeIgniter 3.1.3 is vulnerable to HTTP Header Injection in the set_status_header() common function under Apache resulting in HTTP Header Injection flaws.

CVE-2017-1000247 Affected Codeigniter4/framework Versions

1 component(s)
Fixed Versions:
3.1.4
Product / Package Ecosystem Affected Versions Fixed Version
codeigniter4/framework
Packagist
≥ 3.1.3
< 3.1.4
All 1 versions
3.1.3
3.1.4

References

Frequently Asked Questions

What is CVE-2017-1000247?
CVE-2017-1000247 is a security vulnerability in Codeigniter4/framework involving CodeIgniter HTTP Header Injection under CWE-20: Improper Input Validation.
Which Codeigniter4/framework versions are affected?
Affected versions include releases prior to 3.1.4 across affected packages: codeigniter4/framework.
What version fixes CVE-2017-1000247?
Upgrading to 3.1.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is codeigniter4/framework affected?
Yes, codeigniter4/framework is affected in releases prior to 3.1.4. Upgrade your dependency to 3.1.4 or later.
What is the CVSS score of CVE-2017-1000247?
CVE-2017-1000247 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2017-1000247?
CVE-2017-1000247 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2017-1000247?
Run the dependency tree command: 'inspect dependencies for codeigniter4/framework'. 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-j9f9-8j39-4g97",
  "modified" : "2024-04-24T17:59:16Z",
  "published" : "2022-05-17T00:18:34Z",
  "aliases" : [ "CVE-2017-1000247" ],
  "summary" : "CodeIgniter HTTP Header Injection",
  "details" : "British Columbia Institute of Technology CodeIgniter 3.1.3 is vulnerable to HTTP Header Injection in the set_status_header() common function under Apache resulting in HTTP Header Injection flaws.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "codeigniter4/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.3"
      }, {
        "fixed" : "3.1.4"
      } ]
    } ],
    "versions" : [ "3.1.3" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-1000247"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/codeigniter4/framework"
  }, {
    "type" : "WEB",
    "url" : "https://www.codeigniter.com/userguide3/changelog.html#version-3-1-4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-24T17:59:16Z",
    "nvd_published_at" : "2017-11-17T04:29:00Z"
  }
}