Page MenuHomePhabricator

Version `4.3.5` of `smarty/smarty` library in Extension:Widgets library has CVE-2024-35226
Closed, ResolvedPublicSecurity

Description

Recent "trivy" can on a container maintained by me revealed an issue with Extension:Widgets

┌──────────────────┬────────────────┬──────────┬────────┬───────────────────┬───────────────┬───────────────────────────────────────────────────────┐
│ smarty/smarty    │ CVE-2024-35226 │ HIGH     │        │ v4.3.5            │ 5.1.1, 4.5.3  │ Smarty is a template engine for PHP, facilitating the │
│                  │                │          │        │                   │               │ separation of pr...                                   │
│                  │                │          │        │                   │               │ https://avd.aquasec.com/nvd/cve-2024-35226            │
└──────────────────┴────────────────┴──────────┴────────┴───────────────────┴───────────────┴───────────────────────────────────────────────────────┘

This particular version of the library seems to be in all current branches (REL1_39, REL1_42, master)

I am currently testing fixed version 4.5.3 and will provide a patch in case it works. I created this task to properly reference something in the commit message.

See also https://nvd.nist.gov/vuln/detail/CVE-2024-35226

Event Timeline

Osnard updated the task description. (Show Details)

Attached potential patch. Not on gerrit yet.

Using the next minor version of the library seems to work. I didn't experience any issues so far. My proposal is to completely drop older versions, as most of them are very old already anyways.

Mstyles moved this task from Incoming to In Progress on the Security-Team board.
Mstyles subscribed.

This patch looks good but I would like someone familiar with this extension to review it as well.

Fine with me. I see no reason why 4.5.3+ should not work with this extension. A field test with a couple of widgets confirmed this. If @Yaron_Koren is OK with this change, Robert could add the patch to Gerrit.

I assume we can make this task public now, since the fixes were handled publicly in gerrit and are now merged? This issue will be reannounced within the next supplemental security release, due out around September 30th, 2024.

Mstyles changed the visibility from "Custom Policy" to "Public (No Login Required)".Jul 22 2024, 4:55 PM
Mstyles changed the edit policy from "Custom Policy" to "All Users".
Mstyles moved this task from In Progress to Our Part Is Done on the Security-Team board.
Yaron_Koren claimed this task.

I think this can be closed.