QID 731088

QID 731088: Apache Apisix Security Update

Apache APISIX is a dynamic, real-time, high-performance API gateway. APISIX provides rich traffic management features such as load balancing, dynamic upstream, canary release, circuit breaking, authentication, observability, and more.

In Apache APISIX before 2.13.0, when decoding JSON with duplicate keys, lua-cjson will choose the last occurred value as the result. By passing a JSON with a duplicate key, the attacker can bypass the body_schema validation in the request-validation plugin.

Affected Versions:
Apache APISIX Prior to 2.13.0

QID Detection Logic(unauthenticated): This QID checks for vulnerable Apache Apisix versions by sending a payload to the Apisix Server

Successful exploitation of the vulnerability may allow the attacker can bypass the body_schema validation in the request-validation plugin.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 6.8 severity.
  • Solution
    Vendor has release patch, for more information please refer to Apache AdvisoryWorkaround:
    Add additional validation in the application code, embrace defensive programming.
    Vendor References

    CVEs related to QID 731088

    Software Advisories
    Advisory ID Software Component Link
    Apache Apisix URL Logo lists.apache.org/thread/03vd2j81krxmpz6xo8p1dl642flpo6fv