VYPR
Medium severity5.3NVD Advisory· Published Jun 11, 2024· Updated Apr 15, 2026

CVE-2024-37296

CVE-2024-37296

Description

The Aimeos HTML client provides Aimeos HTML components for e-commerce projects. Starting in version 2020.04.1 and prior to versions 2020.10.27, 2021.10.21, 2022.10.12, 2023.10.14, and 2024.04.5, digital downloads sold in online shops can be downloaded without valid payment, e.g. if the payment didn't succeed. Versions 2020.10.27, 2021.10.21, 2022.10.12, 2023.10.14, and 2024.04.5 fix this issue.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
aimeos/ai-client-htmlPackagist
>= 2024.04.1, < 2024.04.52024.04.5
aimeos/ai-client-htmlPackagist
>= 2023.04.1, < 2023.10.142023.10.14
aimeos/ai-client-htmlPackagist
>= 2022.04.1, < 2022.10.122022.10.12
aimeos/ai-client-htmlPackagist
>= 2021.04.1, < 2021.10.212021.10.21
aimeos/ai-client-htmlPackagist
>= 2020.04.1, < 2020.10.272020.10.27

Patches

5
5a7249769142

Check for payment status on downloads

1 file changed · +1 0
  • client/html/src/Client/Html/Account/Download/Standard.php+1 0 modified
    @@ -288,6 +288,7 @@ protected function checkAccess( string $id = null ) : bool
     
     			$search = $manager->createSearch();
     			$expr = array(
    +				$search->compare( '>=', 'order.statuspayment', \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED ),
     				$search->compare( '==', 'order.base.customerid', $customerId ),
     				$search->compare( '==', 'order.base.product.attribute.id', $id ),
     			);
    
7f01d2f4fbc6

Check for payment status on downloads

1 file changed · +1 0
  • client/html/src/Client/Html/Account/Download/Standard.php+1 0 modified
    @@ -288,6 +288,7 @@ protected function checkAccess( string $id = null ) : bool
     
     			$search = $manager->filter();
     			$expr = array(
    +				$search->compare( '>=', 'order.statuspayment', \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED ),
     				$search->compare( '==', 'order.base.customerid', $customerId ),
     				$search->compare( '==', 'order.base.product.attribute.id', $id ),
     			);
    
fc611ff9a57e

Check for payment status on downloads

1 file changed · +2 1
  • src/Client/Html/Account/Download/Standard.php+2 1 modified
    @@ -183,10 +183,11 @@ protected function checkAccess( string $id = null ) : bool
     
     		if( ( $customerId = $context->user() ) !== null && $id !== null )
     		{
    -			$manager = \Aimeos\MShop::create( $context, 'order/base' );
    +			$manager = \Aimeos\MShop::create( $context, 'order' );
     
     			$search = $manager->filter();
     			$expr = array(
    +				$search->compare( '>=', 'order.statuspayment', \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED ),
     				$search->compare( '==', 'order.base.customerid', $customerId ),
     				$search->compare( '==', 'order.base.product.attribute.id', $id ),
     			);
    
6460ffe8f492

Check for payment status on downloads

1 file changed · +1 0
  • src/Client/Html/Account/Download/Standard.php+1 0 modified
    @@ -187,6 +187,7 @@ protected function checkAccess( string $id = null ) : bool
     
     			$search = $manager->filter();
     			$expr = array(
    +				$search->compare( '>=', 'order.statuspayment', \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED ),
     				$search->compare( '==', 'order.customerid', $customerId ),
     				$search->compare( '==', 'order.product.attribute.id', $id ),
     			);
    
12d8aad1a373

Check for payment status on downloads

1 file changed · +1 0
  • src/Client/Html/Account/Download/Standard.php+1 0 modified
    @@ -187,6 +187,7 @@ protected function checkAccess( string $id = null ) : bool
     
     			$search = $manager->filter();
     			$expr = array(
    +				$search->compare( '>=', 'order.statuspayment', \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED ),
     				$search->compare( '==', 'order.customerid', $customerId ),
     				$search->compare( '==', 'order.product.attribute.id', $id ),
     			);
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

8

News mentions

0

No linked articles in our index yet.